package beans;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@ManagedBean(name="countryTable")
@RequestScoped
public class CountryTableModel {
	private static List<Country> data = new ArrayList<Country>();
	static {
		data.add(new Country("Egypt" , "Cairo, Egypt", "Africa"));
		data.add(new Country("Germany" , "Berlin, Germany", "Europe"));
		data.add(new Country("Austria" , "Vienna, Austria", "Europe"));
		data.add(new Country("US" , "Washington, USA", "North America"));
		data.add(new Country("China" , "Beijing, China", "Asia"));
		data.add(new Country("Brazil" , "Brazilia, Brazil", "South America"));
		data.add(new Country("Calle 895 1342,Florencio Varela, Buenos Aires" , "Florencio Varela, Buenos Aires", "South America"));
	}

	public List<Country> getData() {
		return data;
	}

	public void setData(List<Country> data) {
		this.data = data;
	}	
}
